//
//  BaseTableViewController.h
//  20240823
//
//  Created by 张伟 on 2024/8/25.
//

#import "BaseViewController.h"

NS_ASSUME_NONNULL_BEGIN

@interface BaseTableViewController : BaseViewController <UITableViewDataSource, UITableViewDelegate>
@property (weak, nonatomic) IBOutlet BaseTableView *tableView;
//数据源
@property (nonatomic) NSMutableArray * dataSource;
//页码
@property (nonatomic) NSInteger page;
//每页请求的数量
@property (nonatomic, readonly) NSInteger pageSize;

//添加刷新头部和脚部
-(void)addRefreshHeaderAndFooter;
//只添加顶部刷新
-(void)addRefreshHeader;
//只添加底部加载
-(void)addRefreshFooter;

-(void)refreshAction;
-(void)loadMoreAction;

//停止刷新
-(void)endRefresh;

@end

NS_ASSUME_NONNULL_END
